import yagmail

class Tools():
    def send_email(self):
        mail = yagmail.SMTP(user='3047217905@qq.com',password='wsmqyonwzaxqdcgj',host='smtp.qq.com',port='465')
        mail.send(to='3047217905@qq.com',subject='今日份自动化测试请查收',contents='aa')
        mail.close()